<template>
  <div @click="myEvent">my component!</div>
</template>

<script>
export default {
  name: "MyComponent",
  methods: {
    myEvent() {
      this.$emit("myEvent");
    }
  }
};
</script>